package com.szmmsoft.mp.common.config;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import static org.springframework.core.Ordered.HIGHEST_PRECEDENCE;

/**
 * Description of the class.
 *
 * @author ethan
 * @version 1.0.0
 * @since 2024-10-15
 */
@Configuration
public class FilterConfig {
//    @Bean
//    public RequestCachingFilter requestCachingFilter() {
//        return new RequestCachingFilter();
//    }
//
//    @Bean
//    public FilterRegistrationBean requestCachingFilterRegistration(
//            RequestCachingFilter requestCachingFilter) {
//        //把requestCachingFilter放在最前面
//        FilterRegistrationBean bean = new FilterRegistrationBean(requestCachingFilter);
//        bean.setOrder(1);
//        return bean;
//    }
}
